package com.soul.common.constant;

import java.util.concurrent.TimeUnit;

/**
 * 缓存key 常量
 */
public class CacheConstants {



    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 验证码有效期时间
     */
    public static final Integer CAPTCHA_EXPIRATION = 2;
    /**
     * 验证码有效期（单位）
     */
    public static final TimeUnit CAPTCHA_UNIT = TimeUnit.MINUTES;


    /**
     * 今日推荐 redis key
     */
    public static final String DAY_MUSIC_CODE_KEY = "day_music:";
    /**
     * 今日推荐有效期（单位）
     */
    public static final TimeUnit DAY_MUSIC_UNIT = TimeUnit.SECONDS;

}
